<!DOCTYPE html>
<html>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <title>瓦片图层与地理投影 - ArcGIS瓦片图层</title>
  <style type="text/css">
    html,
    body {
      margin: 0px;
      height: 100%;
      width: 100%;
    }
    .container {
      width: 100%;
      height: 100%;
    }
  </style>
  <link rel="stylesheet" href="https://unpkg.com/maptalks/dist/maptalks.css" />
  <script
    type="text/javascript"
    src="https://unpkg.com/maptalks/dist/maptalks.min.js"
  ></script>
  <body>
    <div id="map" class="container"></div>

    <script>
      var map = new maptalks.Map('map', {
        center: [114.49262788, 30.5587041],
        zoom: 15.929163959739611,
        spatialReference: {
          projection: 'EPSG:4326' //也可以设成 EPSG:4326
        }
      })

      new maptalks.WMSTileLayer('wms', {
        urlTemplate:
          'https://218.106.119.50:6443/geoscene/services/huashan_DOM_4490/MapServer/WMSServer',
        crs: 'EPSG:4490',
        layers: '0',
        styles: 'default',
        version: '1.1.1',
        format: 'image/png',
        transparent: true,
        uppercase: true
      }).addTo(map)
    </script>
  </body>
</html>
